package com.chengyu.core.service.member;

import com.chengyu.core.model.UmsMember;
import com.chengyu.core.model.UmsMemberCollectionServices;

import java.util.List;

/**
 * @title  收藏商品
 * @author LeGreen
 * @date   2022/4/28
 */
public interface MemberCollectServicesService {

    /**
     * 商品收藏列表
     * @author LeGreen
     * @date   2022/4/28
     * @param  memberId
     * @param  page
     * @param  pageSize
     * @return List<UmsMemberCollectionServices>
     */
    List<UmsMemberCollectionServices> getMemberCollectionServicesList(Integer memberId, Integer page, Integer pageSize);

    /**
     * 收藏或取消收藏
     * @author LeGreen
     * @date   2022/4/28
     * @param  member
     * @param  servicesId
     */
    void collectOrNoServices(UmsMember member, Integer servicesId);

    /**
     * 是否收藏商品
     * @author LeGreen
     * @date   2022/4/28
     * @param  member
     * @param  servicesId
     * @return boolean
     */
    boolean isCollectServices(UmsMember member, Integer servicesId);

    /**
     * 删除收藏的商品
     * @author LeGreen
     * @date   2022/4/28
     * @param  collectServicesId
     */
    void deleteCollectionServices(Integer collectServicesId);

    /**
     * 删除该商品下所有的收藏
     * @author LeGreen
     * @date   2022/4/28
     * @param  servicesId
     */
    void deleteCollectionByServicesId(Integer servicesId);
}
